'use strict';

/**
 * type  1:菜单 2:功能
 */
// var Auth = 

function getAuths() {
    return [
        {
            text: '首页',
            field: 'home',
            type: '1',
            selectable: false,
            state: {
                expanded: false
            }
        },
        {
            text: '文档管理',
            field: 'doc',
            type: '1',
            selectable: false,
            state: {
                expanded: false
            },
            nodes: [{
                text: '文档管理',
                selectable: false,
                field: 'doc-list',
                type: '1',
                state: {
                    expanded: false
                },
                nodes: [{
                    text: '新增',
                    selectable: false,
                    field: 'doc-list-add',
                    type: '2'
                }, {
                        text: '修改',
                        selectable: false,
                        field: 'doc-list-edit',
                        type: '2'
                    }, {
                        text: '删除',
                        selectable: false,
                        field: 'doc-list-del',
                        type: '2'
                    }]
            }, {
                    text: '文档分类',
                    selectable: false,
                    field: 'doc-category',
                    type: '1',
                    state: {
                        expanded: false
                    },
                    nodes: [{
                        text: '新增',
                        selectable: false,
                        field: 'doc-category-add',
                        type: '2'
                    }, {
                            text: '修改',
                            selectable: false,
                            field: 'doc-category-edit',
                            type: '2'
                        }, {
                            text: '删除',
                            selectable: false,
                            field: 'doc-category-del',
                            type: '2'
                        }]
                }, {
                    text: '文档标签',
                    selectable: false,
                    field: 'doc-tag',
                    type: '1',
                    state: {
                        expanded: false
                    },
                    nodes: [{
                        text: '新增',
                        selectable: false,
                        field: 'doc-tag-add',
                        type: '2'
                    }, {
                            text: '修改',
                            selectable: false,
                            field: 'doc-tag-edit',
                            type: '2'
                        }, {
                            text: '删除',
                            selectable: false,
                            field: 'doc-tag-del',
                            type: '2'
                        }]
                }]
        },
        {
            text: '系统管理',
            field: 'sys',
            type: '1',
            selectable: false,
            state: {
                expanded: false
            },
            nodes: [{
                text: '权限查看',
                selectable: false,
                field: 'sys-auth',
                type: '1',
                state: {
                    expanded: false
                }
            }, {
                    text: '角色管理',
                    selectable: false,
                    field: 'sys-role',
                    type: '1',
                    state: {
                        expanded: false
                    },
                    nodes: [{
                        text: '新增',
                        selectable: false,
                        field: 'sys-role-add',
                        type: '2'
                    }, {
                            text: '修改',
                            selectable: false,
                            field: 'sys-role-edit',
                            type: '2'
                        }, {
                            text: '删除',
                            selectable: false,
                            field: 'sys-role-del',
                            type: '2'
                        }]
                }, {
                    text: '管理员管理',
                    selectable: false,
                    field: 'sys-account',
                    type: '1',
                    state: {
                        expanded: false
                    },
                    nodes: [{
                        text: '新增',
                        selectable: false,
                        field: 'sys-account-add',
                        type: '2'
                    }, {
                            text: '修改',
                            selectable: false,
                            field: 'sys-account-edit',
                            type: '2'
                        }, {
                            text: '删除',
                            selectable: false,
                            field: 'sys-account-del',
                            type: '2'
                        }]
                }]
        }
    ]
}